﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ASBCC.Database.Entity;

namespace ASBCC.Workflow.Client.Controllers
{
    public class WorkflowControllerFactory
    {
        public static IWorkflowController GetWorkflowController(string procName, IWorkflowPage workflowPage, IAppForm appForm, MyActivityTableEntity myActivity)
        {
            if (procName == ProcNameConsts.IQ)
                return new IQWorkflowController(workflowPage, appForm, myActivity);
            else
                return null;
        }

        public static string GetWorkflowActionPanel(string procName)
        {
            return "~/Workflow/ActionPanel/DefaultWorkflowActionPanel.ascx";
        }
    }
}
